import request from '@/utils/request'

// 登录方法
export function login(user) {
  return request({
    url: '/userTest/login',
    headers: {
      isToken: false,
      repeatSubmit: false
    },
    method: 'post',
    data: user
  })
}

// 注册方法
export function register(user) {
  return request({
    url: '/userTest/register',
    headers: {
      isToken: false
    },
    method: 'post',
    data: user
  })
}

// 退出方法
export function logout() {
  return request({
    url: '/userTest/logout',
    method: 'get'
  })
}
